import request from '@/utils/request'

// 查询学校荣誉列表
export function listHonor(query) {
  return request({
    url: '/edu/honor/list',
    method: 'get',
    params: query
  })
}

// 查询学校荣誉详细
export function getHonor(id) {
  return request({
    url: '/edu/honor/' + id,
    method: 'get'
  })
}

// 新增学校荣誉
export function addHonor(data) {
  return request({
    url: '/edu/honor',
    method: 'post',
    data: data
  })
}

// 修改学校荣誉
export function updateHonor(data) {
  return request({
    url: '/edu/honor',
    method: 'put',
    data: data
  })
}

// 删除学校荣誉
export function delHonor(id) {
  return request({
    url: '/edu/honor/' + id,
    method: 'delete'
  })
}
